<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>网站后台管理模版</title>
		<link rel="stylesheet" type="text/css" href="__PUBLIC__/admini/layui/css/layui.css" />
		<link rel="stylesheet" type="text/css" href="__PUBLIC__/admini/css/admin.css" />
	</head>

	<body>
		<div class="page-content-wrap">
				<form class="layui-form" method="post" action="{:url('')}">
					<div class="layui-tab" style="margin: 0;">
						<ul class="layui-tab-title">
							<li class="layui-this">新增菜单</li>
						</ul>
						<div class="layui-tab-content">
							<div class="layui-tab-item"></div>
							
							<div class="layui-tab-item layui-show">
								<div class="layui-form-item">
									<label class="layui-form-label">上级菜单：</label>
									<div class="layui-input-block">
										<input name="id" value="{$data.id}" hidden="hidden" type="text" />
										<select name="pid" lay-verify="required">
											<option value="0">一级菜单</option>
											{volist name="type" id="vo"}
											<option value="{$vo.id}" {if $vo.id==$data.pid}selected = "selected"{/if}>{neq name="vo.level" value="1"}| {for start='1' end='$vo.level'} ---- {/for} {/neq}{$vo.name}</option>
											{/volist}
										</select>
									</div>
								</div>
								
								<div class="layui-form-item">
									<label class="layui-form-label">菜单名称：</label>
									<div class="layui-input-block">
										<input type="text" name="name" value="{$data.name}" required lay-verify="required" placeholder="请输入菜单名称" autocomplete="off" class="layui-input">
									</div>
								</div>
								<div class="layui-form-item">
									<label class="layui-form-label">控制器方法：</label>
									<div class="layui-input-block">
										<input type="text" name="title" value="{$data.title}" required lay-verify="required" placeholder="请输入控制器方法" autocomplete="off" class="layui-input">
									</div>
								</div>
								<div class="layui-form-item">
									<label class="layui-form-label">图标：</label>
									<div class="layui-input-block">
										<input type="text" name="icon" value="{$data.icon}" required lay-verify="required" placeholder="请输入图标" autocomplete="off" class="layui-input">
									</div>
								</div>
								<div class="layui-form-item">
									<label class="layui-form-label">排序：</label>
									<div class="layui-input-block">
										<input type="text" name="sort" value="{$data.sort}" required lay-verify="required" placeholder="请输入排序" autocomplete="off" class="layui-input">
									</div>
								</div>
								
								<div class="layui-form-item">
									<label class="layui-form-label">状态：</label>
									<div class="layui-input-block">
										<input type="radio" name="status" value="1" title="显示" {if $data.status == '1'}checked="checked"{/if}>
										<input type="radio" name="status" value="2" title="隐藏" {if $data.status == '2'}checked="checked"{/if}>
									</div>
								</div>
							</div>
						</div>
					</div>
					<div class="layui-form-item" style="padding-left: 10px;">
						<div class="layui-input-block">
							<button class="layui-btn layui-btn-normal" lay-submit lay-filter="login">立即提交</button>
							<button type="reset" class="layui-btn layui-btn-primary">重置</button>
						</div>
					</div>
				</form>
		</div>
		<script src="__PUBLIC__/admini/layui/layui.js" type="text/javascript" charset="utf-8"></script>
		<script src="__PUBLIC__/admini/js/common.js" type="text/javascript" charset="utf-8"></script>
	</body>

</html>